#ifndef __RTUSERVER_H__
#define __RTUSERVER_H__

#include <iostream>
#include <string>
#include <vector>
#include "../rtubuffer/rtubuffer.h"
#include "../jsonconfig/jsonconfig.h"

class rtuServer
{
    public:
    rtuServer(BridgeConfig &cfg);
    void config(BridgeConfig &cfg);
    void stop();
    void exec();
    private:
    std::string serialport;
    int baud,stopbit,databits;
    char parity;
    std::vector<PollingCode> polling;
};

#endif